package com.cass.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value ="user_feedback")
public class userFeedback {
    private Integer id;
    private String username;
    private String content;
    private String email;
    /**
     * 创建时间
     */
    @Schema(name = "creationTime", description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime creationTime;
    /**
     * 更新时间
     */
    @Schema(name = "turnoverTime", description = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime turnoverTime;
}
